export const workOrderStatusDict = Object.freeze({
  0: "待受理",
  1: "回退中", // 复核通过是回退中和待派发的功能是一样的。
  2: "待确认办理",
  3: "调查中",
  4: "待办结",
  5: "已办结",
  6: "不受理",
  7: "已中止", // 废弃
  8: "已终止",
  9: "撤回中",
  10: "已撤回",
  11: "已移交",
  12: "预审中",
  13: "已退回",
  14: "放弃投诉举报",
  15: "待终止",
  16: "复核中",
  17: "修正中",
  21: "待派发",
  // 9: '材料补正中',
  // 10: '补正材料已上传'
});
//  subStatus 工单子状态：0-正常,1-撤回中,2-材料补正中,3-材料举证中,4-已终止,5-不受理申诉,6-中止中,7-已中止
export const workOrderSubStatusDict = Object.freeze({
  0: "正常",
  1: "撤回中",
  2: "材料补正中",
  3: "材料举证中",
  4: "已终止",
  5: "复核",
  6: "中止中",
  7: "已中止",
});

export const workOrderAuditTypeDict = Object.freeze({
  "00": "延期审批",
  "01": "中止审批",
  "02": "确认终止审批",
  "03": "不受理审批",
  "04": "移交审批",
  // "05": "自办/转办审批",
  "06": "确认办结审批",
  "07": "提交办结审批",
  // "08": "线索移交审批",
  "09": "直办审批",
  10: "指定办理审批",
  11: "转办审批",
  12: "交办审批",
  21: "退回修改或补正审批",
  22: "放弃投诉举报审批",
  23: "提出复核审批",
  24: "申请复核审批",
  25: "提交终止审批",
  26: "继续办理审批",
  27: "待终止退回重办审批", //待终止退回审批
  28: "待办结退回重办审批",
  29: "预审确认审批",
  30: "案件受理审批",
  31: "确认退回审批",
});

export const workOrderAuditStatusDict = Object.freeze({
  0: "待审批",
  1: "审批通过",
  2: "审批不通过",
  3: "第二步 部门领导审批",
  4: "第三步 分管领导审批",
});

export const workOrderEventSourceDictOrder = [2, 1, 3, 0, 6, 5, 4];
export const workOrderEventSourceDict = Object.freeze({
  2: "上级交办",
  1: "特邀监督员",
  3: "其他部门移交",
  0: "线上投诉",
  6: "线下窗口",
  5: "历史案件",
  4: "其他",
});

export const workOrderExpireFlagDict = Object.freeze({
  N: "未过期",
  Y: "已过期",
});

export const workOrderPublicIntentionDict = Object.freeze({
  Y: "同意公开",
  N: "不同意公开",
});

export const workOrderCreatorTypeDict = Object.freeze({
  0: "个人",
  1: "市场主体",
  // 2: "特邀监督员",
  // 3: "上级交办",
  // 4: "其他部门移交",
  // 5: "其他",
});

export const workOrderPublicStatusDict = Object.freeze({
  Y: "公开",
  N: "不公开",
});

// 评价状态
export const workOrderAppraiseStatusDict = Object.freeze({
  Y: "已评价",
  N: "未评价",
});

// 审核状态
export const workOrderProcessAuditStatusDict = Object.freeze({
  0: "待审核",
  1: "通过",
  2: "不通过",
});

export const workOrderOperateTypeDict = Object.freeze({
  "00": "创建",
  "01": "编辑",
  "02": "关闭",
  "03": "移交",
  "04": "受理交办",
  "05": "取消受理",
  "06": "不受理",
  "07": "取消不受理",
  "08": "回退",
  "09": "取消回退",
  10: "转移交办",
  11: "开始处理",
  12: "取消开始处理",
  13: "中止",
  14: "继续处理",
  15: "延期",
  16: "提交办结",
  17: "取消提交办结",
  18: "退回",
  19: "办结",
  20: "取消办结",
  21: "评价",
});

export const accountRoleTypeTypeDict = {
  // // 0: "部门成员",
  // 1: '部门领导',
  2: "案件受理管理员",
  3: "案件处理管理员",
  4: "案件评价员",
  // 5: '部门管理员',
  // 6: '案件管理员',
  // 7: '分管领导'
  // '1': '部门领导',
  // "2": "工单受理管理员",
  // "3": "工单处理管理员",
  // '4': '工单评价员',
  5: "部门管理员",
  // '6': '工单管理员',
  // '7': '分管领导',
  // 8: '一级审批',
  // 9: '二级审批',
  // 10: '三级审批',
  // 11: '四级审批'
};

export const workOrderTodoStatusDict = Object.freeze({
  N: "未处理",
  Y: "已处理",
});

export const workOrderProcessStatusDict = Object.freeze({
  0: "待审批",
  1: "已通过",
  2: "已驳回",
  3: "第二部 部门领导审核",
  4: "第三步 分管领导审核",
  5: "第一步 经办人承办",
});

// 投诉对象类型
export const workOrderComplaintObjectTypeDict = Object.freeze({
  0: "各级人民政府及有关部门",
  1: "各级监察委、人民法院、人民检察院、公安机关",
  2: "水电气热等公用企事业单位",
  3: "行业协会商会",
});

export const messageStatusDict = Object.freeze({
  0: "失败",
  1: "成功",
});

export const workOrderExpiresStatusDict = Object.freeze({
  Y: "已过期",
  N: "未过期",
});

export const workOrderAtisFactionLevelDict = Object.freeze({
  satisfaction: "满意",
  common: "基本满意",
  noSatisfaction: "不满意",
});

export const repaymentPlanStatusDict = Object.freeze({
  NO_PAY: "未还款",
  PAYED: "已还款",
});

export const remarkVisibleRangeDict = {
  0: "全部可见",
  1: "仅我可见的",
  2: "部门可见的",
};
remarkVisibleRangeDict.__keyConverter = Number;

export const remarkTypeDict = {
  0: "办案备注",
  1: "跟踪备注",
  2: "异常备注",
  4: "核实回访",
  3: "其他",
};
remarkTypeDict.__keyConverter = Number;

export const baseBoolDict = {
  0: "否",
  1: "是",
};
